<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        {css file="bootstrap"}
        {css file="jqueryUI.bootstrap" /}
        {js file="jquery" /}
        {js file="jqueryUI" /}
        <style type="text/css">
            .tips{
                color:gray;
                padding-left: 5px;
            }
        </style>
    </head>
    <body>
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">邮箱设置</a></li>
                <li><a href="#tabs-2">测试邮箱</a></li>
                <!-- <li><a href="#tabs-3">发送规则</a></li> -->
                <li><a href="#tabs-4">邮件模板</a></li>
            </ul>
            <!--邮箱设置-->
            <div id="tabs-1">
                <form action="__METH__" method="post">
                    <table>
                        <tbody>
                            <tr>
                                <td>SMTP服务器地址：</td>
                                <td><input name="email_host" type="text" value="<?php echo C('email_host');?>">
                                    如：smtp.163.com</td>
                            </tr>
                            <tr>
                                <td align="right">SMTP服务帐户名：</td>
                                <td><input name="email_username" type="text" value="<?php echo C('email_username');?>"></td>
                            </tr>
                            <tr>
                                <td align="right">SMTP服务密码：</td>
                                <td><input name="email_password" type="password" value="<?php echo C('email_password');?>"></td>
                            </tr>
                            <tr>
                                <td align="right">发信人邮件地址：</td>
                                <td><input name="replymail" type="text" value="<?php echo C('replymail');?>">
                                </td>
                            </tr>
                            <tr>
                                <td align="right">SMTP 端口：</td>
                                <td><input name="email_port" type="text" value="<?php echo C('email_port');?>">
                                    默认：25</td>
                            </tr>
                            <tr class="well">
                                <th></th>
                                <td><button type="submit" class="btn btn-info" name="editEmail" style="margin: 12px 0px;"><i class="icon-edit icon-white"></i> 修改</button></td>
                            </tr>
                        </tbody>
                    </table>
                </form>
            </div>
            <!--/邮箱设置-->
            <div id="tabs-2">
                <form action="__CONTROL__/testEmail" method="post">
                    <table>
                        <tr>
                            <td align="right">目的Email地址：</td>
                            <td><input name="email" type="text"></td>
                        </tr>
                        <tr class="well">
                            <th></th>
                            <td><input type="submit" value="发送测试邮件" class="btn btn-primary" name="testEmail" style="margin: 12px 0px;" /></td>
                        </tr>
                    </table>
                </form>
            </div>
            <!--发送规则-->
            <!-- <div id="tabs-3">
                <form action="__CONTROL__/emailSendRule" method="post">
                    <table>
                        <tbody>
                            <tr>
                                <th>注册会员：</th>
                                <td>
                                    <label><input name="EMAIL_ACCOUNT_INFO" type="radio" value="true" checked="checked">通知</label>                
                                    <label><input type="radio" name="EMAIL_ACCOUNT_INFO" value="false">不通知</label>
                                </td>
                                <td class="tips">注册会员成功后发送邮件通知</td>
                            </tr>
                            <tr>
                                <th>申请职位：</th>
                                <td>
                                    <label><input name="EMAIL_APPLY_JOBS" type="radio" value="1">通知</label>                
                                    <label><input type="radio" name="EMAIL_APPLY_JOBS" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips">个人用户申请职位后是否通知企业</td>
                            </tr>
                            <tr>
                                <th>邀请面试：</th>
                                <td>
                                    <label><input name="EMAIL_INTERVIEW" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_INTERVIEW" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips">企业邀请个人面试是否通知个人</td>
                            </tr>
                            <tr>
                                <th>修改密码：</th>
                                <td>
                                    <label><input name="EMAIL_CHANGE_PWD" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_CHANGE_PWD" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips">会员修改密码后是否邮件通知</td>
                            </tr>
                            <tr>
                                <th>职位审核通过：</th>
                                <td>
                                    <label><input name="EMAIL_JOB_PASS" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_JOB_PASS" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips" rowspan="2">企业发布职位审核通过后是否邮件通知</td>
                            </tr>
                            <tr>
                                <th>职位审核未通过：</th>
                                <td>
                                    <label><input name="EMAIL_JOB_FALL" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_JOB_FALL" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips"></td>
                            </tr>
                            <tr>
                                <th>营业执照审核通过：</th>
                                <td>
                                    <label><input name="EMAIL_LICENCE_PASS" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_LICENCE_PASS" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                                <td class="tips" rowspan="2">企业营业执照审核是否邮件通知</td>
                            </tr>
                            <tr>
                                <th>营业执照审核未通过：</th>
                                <td>
                                    <label><input name="EMAIL_LICENCE_FALL" type="radio" value="1">通知</label>                
                                    <label><input name="EMAIL_LICENCE_FALL" type="radio" value="0" checked="checked">不通知</label>
                                </td>
                            </tr>
                            <tr class="well">
                                <th>&nbsp;</th>
                                <td>
                                    <input name="" type="submit" class="btn btn-primary" value="保存">    
                                </td>
                                <td>&nbsp;</td>
                            </tr>
                        </tbody>
                    </table>
                </form> -->
                <style type="text/css">
                    #tabs-3 table tr{
                        height: 30px;
                        line-height: 30px;
                    }
                    #tabs-3 table th{
                        padding-right:10px;
                        padding-left:20px;
                        text-align:right;
                        font-weight:normal;
                    }
                    table label{
                        display:block;
                        width: 65px;
                        height: 20px;
                        line-height: 20px;
                        margin-top:5px;
                        float: left;
                        text-indent:0.3em;
                    }
                    table label input{
                        float:left;
                        width: 20px;
                        height: 20px;
                    }
                    .well input{
                        margin:10px 0px;
                    }
                </style>
            <!-- </div> -->
            <!--/发送规则-->
            <div id="tabs-4">
                <table>
                    <tr>
                        <th>注册用户（激活）：</th>
                        <td><a href="__CONTROL__/emailTpl/type/register_active"><i class="icon-edit"></i>编辑模板</a></td>
                    </tr>
                    <tr>
                        <th>注册用户（资料）：</th>
                        <td><a href="__CONTROL__/emailTpl/type/register_info"><i class="icon-edit"></i>编辑模板</a></td>
                    </tr>
                    <tr>
                        <th>验证邮箱：</th>
                        <td><a href="__CONTROL__/emailTpl/type/authEmail"><i class="icon-edit"></i>编辑模板</a></td>
                    </tr>
                </table>
            </div>
        </div>
        <script type="text/javascript">
            $('#tabs').tabs({ selected: {if value="!$hd.get.action|empty"}{$hd.get.action}{else /}0{/if}});
        </script>
    </body>
</html>
